# version: 6.49.10 (stable) # factory-software: 6.40 # total-memory: 256.0MiB # cpu: MIPS 1004Kc V2.15 # cpu-count: 4 # total-hdd-space: 16.3MiB # architecture-name: mmips # board-name: hEX # platform: MikroTik # installed-version: 6.49.10 # Flags: U - undoable, R - redoable, F - floating-undo # ACTION BY POLICY # U log rule added iper write # U log rule added iper write # U log rule added iper write # U log rule added iper write # U log action changed iper write # U log action changed iper write # U log action changed iper write # U log rule removed iper write # U log rule added iper write # U log rule added iper write # U log rule added iper write # U log rule added iper write # U ip service changed iper write # U log action changed usr_66DFww write # U log action changed usr_66DFww write # U user usr_66DFww removed usr_66DFww write # policy # U script removed from scheduler usr_66DFww write # U ssh settings changed usr_66DFww write # U user usr_66DFww added 0 write # policy # U new script scheduled 0 write # U nat rule changed iper write # U nat rule changed iper write # U nat rule changed iper write # U log action changed iper write # U ip service changed iper write # U ip service changed iper write # # software id = WFZ1-RHPU # # model = RouterBOARD 750G r3 # serial number = 8AFF0804219A /interface bridge add name=loopback protocol-mode=none /interface ethernet set [ find default-name=ether1 ] name=ether1-wan speed=100Mbps set [ find default-name=ether2 ] speed=100Mbps set [ find default-name=ether3 ] speed=100Mbps set [ find default-name=ether4 ] speed=100Mbps set [ find default-name=ether5 ] comment=Storage speed=100Mbps /interface vlan add interface=ether4 name="vlan 4 Gerenciamento" vlan-id=4 add interface=ether4 name="vlan 5 AtmEmail" vlan-id=5 add interface=ether4 name="vlan 6 dns2" vlan-id=6 add interface=ether4 name="vlan 7 web" vlan-id=7 /snmp community set [ find default=yes ] name=ipermonitor /system logging action set 3 remote=45.163.13.106 src-address=177.73.253.5 add name=iper remote=45.163.13.106 src-address=177.73.253.5 target=remote /user group set read policy="local,telnet,ssh,ftp,read,test,winbox,web,sensitive,romon,dude,tikapp,!reboot,!write,!policy,!password,!sniff,!api" set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,api,romon,dude,tikapp" add name=suporte-nivel-2 policy="local,telnet,ftp,reboot,read,write,test,winbox,web,sniff,sensitive,!ssh,!policy,!password,!api,!romon,!dude,!tikapp" /ip neighbor discovery-settings set discover-interface-list=!dynamic /interface pptp-server server set authentication=pap,chap,mschap1,mschap2 /ip address add address=192.168.154.1/29 interface="vlan 5 AtmEmail" network=192.168.154.0 add address=192.168.50.251/24 interface="vlan 4 Gerenciamento" network=192.168.50.0 add address=192.168.128.1/29 interface="vlan 7 web" network=192.168.128.0 add address=192.168.154.9/29 interface="vlan 6 dns2" network=192.168.154.8 add address=192.168.55.1/24 interface=ether5 network=192.168.55.0 add address=177.73.253.5 interface=loopback network=177.73.253.5 add address=177.73.253.6 interface=loopback network=177.73.253.6 add address=172.16.0.10/30 interface=ether1-wan network=172.16.0.8 /ip dns set servers=177.73.253.254 /ip firewall address-list add address=45.163.12.252/30 list=src-wts-ok add address=192.168.0.0/16 list=src-wts-ok add list=src-block-acesso add address=45.163.14.252/30 list=src-wts-ok add address=177.73.253.5 list=dst-local add address=192.168.154.0/29 disabled=yes list=dst-local add address=177.73.253.6 list=dst-local add address=192.168.154.8/29 disabled=yes list=dst-local add address=187.32.218.97 list=acesso-postgres add address=177.8.244.31 list=acesso-postgres add address=177.73.253.3 disabled=yes list=acesso-postgres /ip firewall filter add action=fasttrack-connection chain=forward connection-state=established,related /ip firewall mangle add action=add-src-to-address-list address-list=dst-p25 address-list-timeout=none-dynamic chain=prerouting disabled=yes dst-address=177.73.253.5 dst-port=25 protocol=tcp add action=mark-routing chain=prerouting disabled=yes new-routing-mark=topppweb passthrough=no src-address=192.168.128.0/29 add action=mark-routing chain=prerouting disabled=yes dst-address-list=!dst-local new-routing-mark=topppweb passthrough=no src-address=192.168.154.8/29 add action=mark-routing chain=prerouting disabled=yes dst-address-list=!dst-local new-routing-mark=topppemail passthrough=no src-address=192.168.154.0/29 add action=mark-connection chain=input comment=email disabled=yes in-interface=*7 new-connection-mark=email passthrough=yes add action=mark-routing chain=output comment=email connection-mark=email disabled=yes new-routing-mark=email passthrough=no add action=mark-connection chain=input comment=web disabled=yes in-interface=*A new-connection-mark=web passthrough=yes add action=mark-routing chain=output comment=web connection-mark=web disabled=yes new-routing-mark=web passthrough=no /ip firewall nat add action=src-nat chain=srcnat dst-address=187.32.218.97 out-interface=ether1-wan src-address=192.168.128.0/29 to-addresses=177.73.253.5 add action=src-nat chain=srcnat out-interface=ether1-wan src-address=192.168.128.0/29 to-addresses=177.73.253.6 add action=src-nat chain=srcnat out-interface=ether1-wan src-address=192.168.154.0/29 to-addresses=177.73.253.5 add action=src-nat chain=srcnat out-interface=ether1-wan src-address=192.168.154.8/29 to-addresses=177.73.253.6 add action=src-nat chain=srcnat out-interface=ether1-wan src-address=192.168.55.0/24 to-addresses=177.73.253.6 add action=dst-nat chain=dstnat comment="Email - AtmEmail" dst-address=177.73.253.5 dst-port=25,53,80,110,143,443,465,587,993,995,1000 protocol=tcp to-addresses=192.168.154.2 add action=dst-nat chain=dstnat comment="Email - AtmEmail" dst-address=177.73.253.5 dst-port=53 protocol=udp to-addresses=192.168.154.2 add action=dst-nat chain=dstnat comment="Email - Storage FTP" dst-address=177.73.253.5 dst-port=21 protocol=tcp to-addresses=192.168.55.100 add action=dst-nat chain=dstnat comment=Teste dst-address=177.73.253.6 dst-port=3306 protocol=tcp src-address=177.73.253.3 to-addresses=192.168.128.2 add action=dst-nat chain=dstnat comment="Web - https - http - ftp" dst-address=177.73.253.6 dst-port=21,80,82,443,8888,30000-30050 protocol=tcp to-addresses=192.168.128.2 add action=dst-nat chain=dstnat comment="Web - https - http - ftp" dst-address=177.73.253.6 dst-port=2030,2031,2082,2083,2086,2087,2095,2096 protocol=tcp to-addresses=192.168.128.2 add action=dst-nat chain=dstnat comment="Acesso Tempero Propaganda" disabled=yes dst-address=177.73.253.6 dst-port=22345 protocol=tcp src-address=177.75.160.46 to-addresses=192.168.128.2 to-ports=22 add action=dst-nat chain=dstnat comment="Web - Dns2" dst-address=177.73.253.6 dst-port=53 protocol=tcp to-addresses=192.168.154.13 add action=dst-nat chain=dstnat comment="Web - Dns2" dst-address=177.73.253.6 dst-port=53 protocol=udp to-addresses=192.168.154.13 add action=src-nat chain=srcnat dst-address=192.168.154.2 src-address=192.168.154.13 to-addresses=177.73.253.6 add action=src-nat chain=srcnat dst-address=192.168.154.13 src-address=192.168.154.2 to-addresses=177.73.253.5 /ip route add distance=5 gateway=172.16.0.9 pref-src=177.73.253.5 scope=0 add comment=rota-phpipam-iper distance=1 dst-address=192.168.5.52/32 gateway=192.168.50.1 add distance=1 dst-address=192.168.40.0/24 gateway=192.168.50.1 /ip service set telnet disabled=yes set ftp disabled=yes set www address=192.168.0.0/16,45.163.12.252/30,187.85.149.50/32 disabled=yes port=8080 set ssh address=45.163.13.106/32 port=2200 set api disabled=yes set winbox address=192.168.50.1/32,45.163.13.106/32,177.73.253.3/32,177.75.162.43/32 port=46837 set api-ssl disabled=yes /ip ssh set always-allow-password-login=yes /radius add address=45.163.12.255 comment=myisp-brdrive secret=rloginchipset service=login /snmp set contact=noc@iper.net.br enabled=yes location=br-sc-vii-vinhedo /system clock set time-zone-name=America/Sao_Paulo /system identity set name=atm-router-hospedagem /system logging add action=iper topics=info,account add action=iper topics=critical add action=iper topics=error add action=iper topics=warning add action=iper topics=critical add action=iper topics=error add action=iper topics=warning add action=iper topics=info,account /system ntp client set enabled=yes primary-ntp=200.160.0.8 secondary-ntp=200.144.121.33 /system resource irq rps set ether1-wan disabled=no set ether2 disabled=no set ether3 disabled=no set ether4 disabled=no set ether5 disabled=no /system scheduler add interval=1d name=script_backup_email on-event=script_backup_email policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jan/01/1970 start-time=03:30:00 add interval=1d name=script_backup_ftp on-event=script_backup_ftp policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jan/01/1970 start-time=03:00:00 /system script add dont-require-permissions=no name=script_backup_ftp owner=iper policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":log info \"Iniciado Backup FTP\"\r\nexport file=backup-ftp\r\n/tool fetch address=ftp.iper.net.br port=8021 src-path=backup-ftp.rsc user=bkp.atm mode=ftp password=atm.bkp dst-path=([/system identity get name].\".rsc\") upload=yes\r\n:log info \"Terminado Backup FTP\"\r\n" add dont-require-permissions=no name=script_backup_email owner=iper policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":log info \"Inciando Backup Email\"\r\nexport file=backup-email\r\n/tool e-mail send to=\"bkp.rb@iper.net.br\" subject=\"\$[/system identity get name]\" body=\"\$[/system clock get date]\" file=\"backup-email.rsc\"\r\n:log info \"Terminado Backup Email\"\r\n" /tool e-mail set address=45.163.12.11 from=envia.bkp@iper.net.br password=Iper@2022 port=587 start-tls=yes user=envia.bkp@iper.net.br /tool graphing interface add /tool graphing queue add /tool graphing resource add /tool sniffer set file-name=dump-p25 filter-ip-address=177.73.253.5/32 filter-port=smtp /user aaa set use-radius=yes